<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<ui:composition>
    <h:form id="control_panel">
        <f:loadBundle basename="bundle.Messages" var="msgs"/>
        

        <p:tabView>

            <p:tab id="config" title="Configuração" rendered="#{logonMBean.login.loginRulesView.root}">
                <ui:include src="/pages/config/list_config.xhtml"/>
                <br/>
                <ui:include src="/pages/config/list_modem.xhtml"/>
                <br/>
                <p:commandButton value="Iniciar" actionListener="#{threadMailboxMBean.startListenerMailbox}" styleClass="btn" />
                <p:commandButton value="Parar" actionListener="#{threadMailboxMBean.stopListenerMailbox}" styleClass="btn"/>
            </p:tab>
            
            <p:tab id="empresas" title="Empresas" rendered="#{logonMBean.login.loginRulesView.root}">
                <ui:include src="/pages/company/list_company.xhtml"/>
                <br/>
                <ui:include src="/pages/company/list_all_logins.xhtml"/>
            </p:tab>
            
            <p:tab id="finances" title="Finanças">
                <ui:include src="/pages/finances/list_bank_account.xhtml"/>
                <br/>
                <ui:include src="/pages/finances/list_credit.xhtml"/>
            </p:tab>
            
            
            <p:tab id="users" title="Usuários">
                <ui:include src="/pages/login/list_login.xhtml"/>
            </p:tab>

            <p:tab title="Clientes">
                <ui:include src="/pages/client/list_client_phone.xhtml"/>
                <br/>
                <ui:include src="/pages/client/list_key_response.xhtml"/>
            </p:tab>

            <p:tab title="Gateway sms">
                <ui:include src="/pages/sms/list_sms_send.xhtml"/>
                <br/>
                <ui:include src="/pages/sms/list_sms_received.xhtml"/>
            </p:tab>
            
        </p:tabView>

        <ui:include src="/pages/config/edit_config.xhtml"/>
        <ui:include src="/pages/config/edit_modem.xhtml"/>
        <ui:include src="/pages/company/edit_company.xhtml"/>
        <ui:include src="/pages/finances/edit_bank_account.xhtml"/>
        <ui:include src="/pages/finances/edit_credit.xhtml"/>
    </h:form>
</ui:composition>

</html>

